#include<cstdio>
using namespace std;

const int MAXS = 120*1024*1024; //120MB
char buf[MAXS];

unsigned int Hash=0;
int len;

void _hash(unsigned int& Hash,unsigned int x){
    Hash+=x;
}

void doit(){
    int x=0;
    char *p=buf;
    while(*p!='\n') *p++;
    while (*p && p-buf<len){
        if ((*p == ' ')||(*p=='\n')||(*p=='\t')){
            _hash(Hash,x);
            x=0;
        }
        else
            x = x * 10 + *p - '0';
        p++;
    }
}

int main(){
    freopen("input","rb",stdin);
    freopen("output","w",stdout);
    len = fread(buf,sizeof(char),MAXS-2,stdin);
    buf[len]='\0';
    doit();
    printf("%u\n",Hash);
    return 0;
}